# custom_business_exception.py

class AgeValidationException(Exception):
    def __init__(self, age):
        self.age = age
        super().__init__(f"年龄验证失败：年龄{age}不在合法范围内")

def validate_age(age):
    if not (0 <= age <= 120):
        raise AgeValidationException(age)

# 测试
try:
    validate_age(130)
except AgeValidationException as e:
    print(e)